@extends('layouts.default')
@section('title','这里是你的私人小屋呜～')
@section('content')
    <a href="{{route('users.edit',$user->id)}}">修改个人资料</a>
    <a href="{{route('users.index')}}">用户列表</a>
    <p>当前登录的用户是:{{\Illuminate\Support\Facades\Auth::user()->name}}</p>
    @include('shared._user')
    <form action="{{route('logout')}}" method="post">
        {{csrf_field()}}
        {{method_field('DELETE')}}
        <button type="submit">退出</button>
    </form>
    <form action="{{route('blogs.store')}}" method="post">
        {{csrf_field()}}
        <label for="content">聊点新鲜事...</label>
        <input type="text" name="content">
        <button type="submit">提交</button>
    </form>
    @foreach($blogs as $blog)
        @include('shared._blog')
    @endforeach
    {!! $blogs->links() !!}
@stop